package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.GoodsCategoryProperties;
@Mapper
public interface GoodsCategoryPropertiesMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(GoodsCategoryProperties record);

    int insertSelective(GoodsCategoryProperties record);

    GoodsCategoryProperties selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsCategoryProperties record);

//    int updateByPrimaryKey(GoodsCategoryProperties record);
    
 // ################ 以上为mybatis generator生成 #####################
    
	List<GoodsCategoryProperties> selectBySelective(
			@Param("goodsId")Long goodsId, 
			@Param("categoryPropertiesTemplateId")Integer categoryPropertiesTemplateId, 
			@Param("propertiesName")String propertiesName);
    
	int deleteById(@Param("id")Long...id);

	/**
	 *
	 * @param properties
	 * @return
	 */
	int insertMany(@Param("properties")List<GoodsCategoryProperties> properties);
	
}